package com.bw.controller;

import com.bw.Service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class StudentController {
    @Autowired
    StudentService studentService;

    @RequestMapping("/studentM1")
    public List<Map<String,Object>> studentM1(){
        return studentService.studentM1();
    }

    @RequestMapping("/studentM2")
    public List<Map<String,Object>> studentM2(){
        return studentService.studentM2();
    }

    @RequestMapping("/studentM3")
    public List<Map<String,Object>> studentM3(){
        return studentService.studentM3();
    }

    @RequestMapping("/studentM4")
    public List<Map<String,Object>> studentM4(){
        return studentService.studentM4();
    }
}
